package com.atguigu.dao;

import com.atguigu.bean.TaskInfo;
import com.atguigu.util.MySQLUtil;

public class TaskInfoDAO {
    public static TaskInfo getTaskInfo(String taskId){

        String sql = "select * from task_info where id = '" + taskId + "'";
        //调用Mysql工具类查询数据
        TaskInfo taskInfo = MySQLUtil.queryOne(sql, TaskInfo.class, true);

        return taskInfo;
    }
}
